﻿@using Inovout.Descriptor
@model IEnumerable<KuaJing.Tasks.Domain.Task>

@Html.Table(Model, () => "没有任务数据" + Html.ActionLink("立即新建", "New", new { ReturnUrl = Request.Url })).Build(properties =>
{
    properties.Extend("名称", v =>
    Html.ActionLink(v.Name, "Edit", "Task", Request.Url.Scheme, null, null, new { Id = v.Id, ReturnUrl = Request.Url }, new { target = "_blank" }));
    properties.Add(m => m.Assignee);
    properties.Add(m => m.Participants);
    properties.Add(m => m.ExpectedStartDate);
    properties.Add(m => m.ExpectedEndDate);
    properties.Add(m => m.ActualStartDate);
    properties.Add(m => m.ActualEndDate);
    properties.Add(m => m.Status).RenderAs(v => v.ToAlias());
})
